/*
 * SQLPaginaDAO.java
 *
 * Created on 8 de noviembre de 2007, 16:00
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

package webportlet.model.pagina.dao;

import java.sql.Connection;
import webportlet.model.pagina.dto.PaginaDTO;
import webportlet.model.util.InstanceNotFoundException;
import webportlet.model.util.InternalErrorException;
import webportlet.model.util.*;

public interface SQLPaginaDAO  {
    
    public PaginaDTO create(Connection connection, PaginaDTO paginaDTO) 
    throws DuplicateInstanceException, InternalErrorException;
    
    public boolean exists(Connection connection, String nickName) 
    throws InternalErrorException;
    
    public PaginaDTO find(Connection connection, String nickName)
     throws InstanceNotFoundException, InternalErrorException;
    
    public void update(Connection connection, PaginaDTO paginaDTO) 
        throws InstanceNotFoundException, InternalErrorException;
    
    public void remove(Connection connection, Long id)
         throws InstanceNotFoundException, InternalErrorException;    
    
    
}
